package bud.vo;

import org.apache.commons.codec.binary.Base64;

import lombok.Data;

@Data
public class CommentMemberDTO {
	private Integer cm_no;
	private Integer cm_ref_key;
	private Integer cm_from_member;
	private String cm_date;
	private String cm_comment;
	private byte[] mem_photo;
	private String mem_name;
	private String cm_dateStr;
	
	public String getMem_photoStr(){
		return mem_photo==null?null:Base64.encodeBase64String(mem_photo);
	}
	public void setCm_date(String cm_date){
		this.cm_date = cm_date;
		cm_dateStr = cm_date.substring(0, 16);
	}
}
